﻿#ifndef SCANRULE_H
#define SCANRULE_H

#include "qbaseentity.h"

class ScanRule : public QBaseEntity
{
    Q_OBJECT
    // 使用 Q_PROPERTY 宏定义属性
    Q_PROPERTY(uint64_t id READ getId WRITE setId)
    Q_PROPERTY(QString filterName READ getFilterName WRITE setFilterName)
    Q_PROPERTY(int disposeMode READ getDisposeMode WRITE setDisposeMode)
    Q_PROPERTY(QString replacePath READ getReplacePath WRITE setReplacePath)
public:
    explicit ScanRule(QObject *parent = nullptr);
    ~ScanRule();

public:

    uint64_t getId() const;
    void setId(const uint64_t &value);

    QString getFilterName() const;
    void setFilterName(const QString &value);

    int getDisposeMode() const;
    void setDisposeMode(int value);

    QString getReplacePath() const;
    void setReplacePath(const QString &value);

private:
    uint64_t id;    //id
    QString filterName;     //过滤文件名
    int disposeMode;    //处理模式 0：删除 1：替换文件
    QString replacePath; //替换文件路径
};

#endif // SCANRULE_H
